package cn.iocoder.yudao.module.alipay.service.alipermission;

import com.alipay.api.AlipayApiException;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.math.BigDecimal;
import java.util.Map;

public interface AliPayService {
    Map getAuthToken(String grantType, String code, String refreshToken,String appId) throws AlipayApiException;

    Object createOrder(String buyerId, BigDecimal totalAmount, String outTradeNo,String appId) throws AlipayApiException;

    Map getAppAuthTokenByCode(String grantType, String code) throws AlipayApiException;

    Object uploadAppVersion(String authAppIduploadAppVersion) throws AlipayApiException;

    Object auditAppVersion(String authAppId) throws AlipayApiException;

    Object onlineAppVersion(String authAppId) throws AlipayApiException;

    Object queryAppVersion(String authAppId) throws AlipayApiException;

    Object delAppVersion(String authAppId) throws AlipayApiException;

    Object cancleAppVersion(String authAppId) throws AlipayApiException;

    Object offlineAppVersion(String authAppId) throws AlipayApiException;

    Object isPassedAppVersion(String authAppId) throws AlipayApiException;

    Object successNotification(HttpServletResponse response, HttpServletRequest request) throws AlipayApiException;

    Object aliAuthNotification(String appAuthCode, String appId);
}

